﻿
namespace _5E.Utils.CollectionHelper
{
    public interface IGenericCache
    {
        void Add<T>(string key, T value);

        void Remove<T>(string key);

        T GetValue<T>(string key);

        bool TryGetValue<T>(string key, out T value);

        void Merge<T>(string key, T value);

        bool ContainsKey<T>(string key);

        bool ContainsValue<T>(T value);

        void Clear();
    }
}
